package cn.grf.datasource.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author grf
 * @apiNote 动态数据源 - 未测试
 * @since 2025/4/23
 */
@Deprecated
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        // return null;
        return DataSourceContextHolder.getDataSourceKey();
    }
}
